<?php
/**
 * Created by PhpStorm.
 * User: ningtaoli
 * Date: 2018/4/24
 * Time: 下午1:05
 */

namespace app\common\validate;


use think\Validate;

class reg extends Validate
{

    protected $rule =   [
        'fid'  => 'require|number',
        'username'   => 'require|max:12',
        'password' => 'require|max:12',

    ];
    protected $message  =   [
        'fid.require' => '参数错误，请重新打开网页！',
        'fid.number'     => '参数错误，请重新打开网页！',
        'username.max'     => '账号长度在6～12位之间',
        'username.require'   => '账号不能为空！',
        'password.max'     => '密码长度在6～12位之间',
        'password.require'   => '密码不能为空！',

    ];

}